package demo1;

public class Family {

    //家里的人共有的东西
    public int age;//年龄
    public String name;//名字
    public String home;//家庭地址

    public int id = 10086;//身份证号码


    //构造方法 --- 无参
    public Family() {

    }

    //带参数的构造方法
    public Family(String name,int age, String home) {
        this.name = name;
        this.age = age;
        this.home = home;
    }



    //打印公共信息
    public void print() {
        System.out.println(this.name);
        System.out.println(this.age);
        System.out.println(this.home);
        System.out.println("*******************************");
    }

}
